#include "SimulatorRegister.h"
#include "ShellProxy.h"

SimulatorRegister::SimulatorRegister(Universe * universe, Scheduler * scheduler)
{
    this->universe = universe;
    this->scheduler = scheduler;

}
SimulatorRegister::~SimulatorRegister()
{
}


ShellProxy * SimulatorRegister::registerGhost(Ghost * ghost)
{
    //FIXME: check return value;

    Shell * shell;
    ShellProxy * shellProxy;

    shell = new Shell(universe, scheduler, ghost);
    shellProxy = new ShellProxy(shell);
    
    universe->registerElement(shell);
    
    return shellProxy;
}
//bool unregister


